/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                                                                    *
*        ***************************************************         *
*        *©2021-2031 LINUO Corporation All rights reserved *         *
*        ***************************************************         *
*                                                                    *
* FileName    : venc.h                                               *
*                                                                    *
* Author      : linus                                                *
*                                                                    *
* Email       : luoyaojun@sina.com                                   *
*                                                                    *
* Date        : 2024-3-27                                            *
*                                                                    *
* Description :                                                      *
*                                                                    *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef __ROCKCHIP_VENC_H
#define __ROCKCHIP_VENC_H

#include "h_venc.h"
#include "h_pthread.h"


struct rockchip_venc_pool{

};

struct rockchip_venc_priv
{
	char stPthreadName[PTHREAD_MAX_NAME];
	//	venc chn attr
	VENC_CHN_ATTR_S stAttr;

	COMPRESS_MODE_E enCompMode;

	RK_S32 chn;

	RK_BOOL pool_enabled;
	MB_POOL vencPoolInput;
	RK_U32 u32PoolSize;


	cb_venc_get_frame user_cb;

	HT_VOID *user;

	
};

struct rockchip_venc
{
	struct rockchip_venc_priv priv[VENC_MAX_CHN_NUM];
	
    struct ht_venc m_venc;

	struct ht_pthread pthread;
	
};

#endif
